/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.mediator;

/**
 * 中介模式
 * @author xiay
 * @since 2020/12/13 10:25 下午
 */
public class MediatorClient {

    public static void main(String[] args) {
        Mediator mediator = new President();

        Department development = new Development(mediator);

        Department financial = new Financial(mediator);

        Department market = new Market(mediator);

        development.selfAction();

        development.outAction("market");
    }

}
